package com.wanbatv.wangwangba.presenter;

import android.content.Context;

import com.wanbatv.wangwangba.model.EncyclopediasModel;
import com.wanbatv.wangwangba.model.OnEncyclopediasListener;
import com.wanbatv.wangwangba.model.imple.EncyclopediasModelImple;
import com.wanbatv.wangwangba.view.EncyclopediasView;

/**
 * Created by 俞亚楠 on 2016/7/28.
 */
public class EncyclopediasPresenter implements OnEncyclopediasListener {

    private EncyclopediasModel encyclopediasModel;
    private EncyclopediasView encyclopediasView;

    public EncyclopediasPresenter(EncyclopediasView encyclopediasView){
        this.encyclopediasView=encyclopediasView;
        encyclopediasModel=new EncyclopediasModelImple(encyclopediasView.getContextFromAct());
    }

    @Override
    public void onLoadEncyclopediasContentData() {
        encyclopediasView.showEncyclopediasContent();
    }

    public void LoadEncyclopediasContentData(String token){
        encyclopediasModel.setLoadEncyclopediasContentData(this,token);
    }
}
